Skip to content

Conversation

iomariani
Copy link

@iomariani iomariani commented Feb 28, 2024

When enabling the iceStopWaitingOnServerReflexive configuration and you have a custom sessionDescriptionHandler with custom peerConnectionDelegate, it gets erased.

In the code the delegate is rewritten to the one defined, without using the original delegates.

This fix simply merges the previous peerConnectionDelegate, if exists, to the new peerConnectionDelegate.

sessionDescriptionHandler.peerConnectionDelegate = {
...sessionDescriptionHandler.peerConnectionDelegate,
onicecandidate: (event) => {
sessionDescriptionHandler.peerConnectionDelegate?.onicecandidate?.(event)

…ectionDelegate

When enabling the `iceStopWaitingOnServerReflexive` configuration and you have a custom sessionDescriptionHandler with custom peerConnectionDelegate, it gets erased.

As in the code forces the delegate to be the one set when that config is enabled...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant